Imaginary part of the optical potential for excited electrons in metals