High pressure properties of graphite and its intercalation compounds