Photochemical reduction of carbon dioxide