Generalized Synthesis to Produce Transparent Thin films of Ternary Metal Oxide Photoelectrodes.