Photovoltaic energy conversion : an endoreversible process.