Spatial inequality and skills in a changing economy