A thermodynamic cycle for photovoltaic energy conversion