Iran threatens to leave NPT if nuclear deal scrapped