A compact electron spectrometer for in-beam measurements of internal conversion coefficients