How did the ideological struggle between capitalism and communism during the Cold War influence global alliances?