Design and synthesis of an efficient nanoporous adsorbent for Hg2+ and Pb2+ ions in water