Measurement and analysis of muonic X-ray spectra in spherical nuclei