A fast beam switch for controlling the intensity in electron energy loss spectrometry.