In situ study of the metal-insulator transition in VO2 by EELS and ab initio calculations.