In-beam axial β-ray spectrometer for the measurement of internal conversion electrons