Optimization of a thermoelectric system for power generation realized by ‘‘hidden’’ components