The Performance of Silver Oxide Catalyst for Water Oxidation under Electrochemical and Photoelectrochemical Conditions