Re-emitted spectra of X-rays traversing a solid material