Mercury(II) adsorption from wastewaters using a thiol functional adsorbent