Smart magnetic affinity adsorbents