Efficient Utilization of Solar Energy in Dye-Sensitized Solar Cells and in the Photocatalytic Reduction of Carbon Dioxide