Model for lithium intercalation into TiS2