Electron spectroscopy. X-ray and electron excitation