Adsorption design for wastewater treatment