New insight in structure-function relations of water-oxidising cobalt and nickel oxides by electrochemistry combined with X-ray absorption spectroscopy