Calibration of the CMS drift tube chambers and measurement of the drift velocity with cosmic rays