Influence of precursors on the morphology and performance of TiO2 photoanodes