Electrical and optical properties of WO3 thin films