Urbanization Externalities, Market Potential and Spatial Sorting of Skills and Firm