In situ spectroscopic studies of metal oxide electrodes during water oxidation