Defiant Iran threatens to quit nuclear treaty