Intercalate ionization in graphite—halogen compounds