Chemical effects in the capture of negative muons