Redox intercalation of iodine into Bi- and Hg-based superconductors