AI and the Rise and Fall of Great Powers