Electron energy-loss spectroscopy (EELS) and the electronic structure of titanium dioxide