Location choices of firms and workers in an urban model with heterogeneities in skills and preferences