Optimization of reaction conditions for preparing carboxymethyl cellulose from sago waste