Spatial equilibrium in deviations: An application to skill-premium and skill-mix heterogeneity