Electrochemical Synthesis of Photoelectrodes and Catalysts for Use in Solar Water Splitting.