X-ray absorption spectroscopy of ICl-intercalated graphite