Fast electron scattering in metals with the excitation of a core electron