Exact thermal and structural damping of the multiple scattering contributions to the XANES