Optimization of BiVO4 photoelectrodes made by electrodeposition for sun-driven water oxidation