Performance of the CMS drift-tube chamber local trigger with cosmic rays