The effect of distance from central cities on partisan outcomes in elections