Externalities in the housing market and agglomeration economies