Combining the muon anomalous magnetic moment with other constraints on the CMSSM