Electron emission and ion desorption spectroscopy of clean and oxidized Ti(0001)