Thermodynamic and kinetic properties of the Li-graphite system from first-principles calculations