what was the nuclear arms race and how did it contribute to the cold war?