Comparative advantage under oligopoly