Simulation and fabrication of tungsten oxide thin films for electrochromic applications