Ionic liquid gating induced self-intercalation of transition metal chalcogenides