Performance of Resistive Plate Chambers for the muon detection at CMS