A simple electron spectrometer for energy analysis in the transmission microscope