Monolithic cells for solar fuels