Preparation of metal halide graphite intercalation compounds by intercalate exchange