Joint rate and data detection in variable-rate CDMA systems