Molecular dynamics in the ternary intercalation compounds of graphite with potassium and benzene