Design and realization of a high resolution electron energy loss spectrometer