Structural characterization and thermal stability of MoS2 intercalation compounds