Structural transformation and tuning of electronic transitions by W-doping in VO2 thin films