Amine intercalates of lamellar compounds NiPS3 and CdPS3