Design and Fabrication of Nanostructured Electrodes for Complementary Electrochemical and Photoelectrochemical Water Splitting