X-Ray Spectrometry in Electron Beam Instruments