Electron energy-loss spectra of clean and gas-covered Ni(100) surfaces