Assembly, testing and production of bakelite RPCs for the end-cap region of the Compact Muon Solenoid experiment at CERN