Condensed-state effects in muonic X-ray spectra