Effect of the reaction conditions on the degree of substitution of carboxymethyl cellulose