From comparative advantage to cognitive advantage: AI-enabled pathways for economic diversification