NMR studies of mercurial-halogen equilibria