Extra‐atomic relaxation and X‐ray spectra of narrow‐band metals. I. Formalism