Market Size, Trade, and Productivity