Sources of city prosperity and cohesion: the case of Glasgow and Edinburgh