Validation, Optimization and Simulation of a Solar Thermoelectric Generator Model