Principles of X-Ray Energy-Dispersive Spectrometry in the Analytical Electron Microscope