Effect of deposition parameters on the properties of TiO2 thin films prepared by spray pyrolysis