Formation of the negative muonium ion and charge-exchange processes for positive muons passing through thin metal foils.