Assortative mixing in spatially-extended networks