Design of a cosmic test bench for the quality control of Resistive Plate Chamber detectors for the CMS experiment