The metal-insulator transition in vanadium dioxide: A view at bulk and surface contributions for thin films and the effect of annealing