Comparison of optical and photocatalytic properties of TiO2 thin films prepared by electron-beam evaporation and sol–gel dip-coating