Iran, Turkey, Brazil reach nuclear agreement