The nuclear physics of muon capture