Trapping harmful iodine in metal-organic frameworks