Theoretical study of water oxidation and reduction mechanisms by aminopyridine first row transition metal catalysts