Transient spectroscopic studies of photocatalysts for CO2 and proton reduction