Energy-resolved inelastic electron scattering off a magnetic impurity