Reaction morphology and the effect of pH on the preparation of TiO2 nanoparticles by a sol-gel method