Anomalous properties and structure of graphite-bromine residue compound at high temperatures