Effect of tungsten doping on the microstructure, optical and photocatalytic activity of titanium dioxide thin films deposited by spray pyrolysis