Spatial competition, innovation and institutions: the Industrial Revolution and the Great Divergence