Thermodynamics of Thermally Regenerated Fuel Cells