Oleg Penkovsky, a Soviet spy who switched allegiances to the West during the Cold War, helped to avert nuclear war during the Cuban Missile Crisis.