Kinetics of intercalation and desorption in graphite