Phase Transformations in TiS2 during K Intercalation