Alignment of the CMS Muon System with Cosmic-Ray and Beam-Halo Muons.