Dynamic and optimization studies on the removal of organic dyes and heavy metal ions by adsorption on various adsorbents