Design of Photocatalysts for CO2 Reduction from First Principles