Effect of grain sizes on the metal-semiconductor phase transition in vanadium dioxide polycrystalline thin films