Effect of pH on the morphology of TiO2 nanostructures