Electron energy-loss spectroscopy study of the metal-insulator transition in VO2