Development and validation of a new TRNSYS type for the simulation of thermoelectric generators