Understanding C-H oxidation and amination reactions performed by late first-row transition metals: trapping high-valent metal-O/N species