Quantum theory of the effect of post-collision interaction on the absorption of X-ray photons by a deep atomic shell