Thermodynamics of solar cell efficiency