Thermodynamic analysis of a solar‐driven thermoelectric generator