A Unified Electro- and Photocatalytic CO2 to CO Reduction Mechanism with Aminopyridine Cobalt Complexes