The capture of muons by complex nuclei