Comparative Advantage and Economies of Scale: When Does Ricardo Dominate Smith?