Single-crystal X-ray study of graphite-Br and graphite-Icl intercalation compounds