Electrochemical photovoltaic cells for solar energy conversion