Adsorption and ion exchange