Solvent-controlled formation and photoelectrochemical sensing properties of 3-dimensional TiO2 nanostructures