Thermodynamic limits to energy conversion in solar thermal fuels