Controlling the structural and optical properties of tungsten oxide films synthesized under environmentally friendly conditions