Muonic x-ray spectroscopy on implanted targets