Effect of preparation conditions on the optical and thermochromic properties of thin films of tungsten oxide