Infrared spectroscopy and nano-imaging of the insulator-to-metal transition in vanadium dioxide