Essays in History and Spatial Economics with Big Data