A general model for performance evaluation in DS-CDMA systems with variable spreading factors