Effect of deposition methods on the properties of photocatalytic TiO2 thin films prepared by spray pyrolysis and magnetron sputtering