Thermodynamics of photon-enhanced thermionic emission solar cells