Characterization of GEM Detectors for Application in the CMS Muon Detection System