Optimization of an activated carbon adsorber for cadmium removal in wastewater