Multiscale modeling of Thermoelectric Generators for conversion performance enhancement