Electron energy loss spectroscopy of plasmon resonances in titanium nitride thin films