Optical and structural properties of TiO2 thin films prepared by sol–gel spin coating