Performance of the CMS Cathode Strip Chambers with Cosmic Rays