Spectroelectrochemical study of water oxidation on nickel and iron oxyhydroxide electrocatalysts