Underground muon physics with the MACRO experiment