Separation of amines by ligand exchange