An electrochemical method to enhance the performance of metal oxides for photoelectrochemical water oxidation