Shape-controlled synthesis and influence of W doping and oxygen nonstoichiometry on the phase transition of VO2