Thermoelectric generator in endoreversible approximation: The effect of heat-transfer law under finite physical dimensions constraint.