Aligning the CMS muon chambers with the muon alignment system during an extended cosmic ray run