Photo- and electrocatalytic H2 production by new first-row transition-metal complexes based on an aminopyridine pentadentate ligand.