The Evolution of Comparative Advantage: Measurement and Welfare Implications