Development Of A Platform For Simulating And Optimizing Thermoelectric Energy Systems