Specializing in Density: Spatial Sorting and the Pattern of Trade ∗