Essays on spatial economics and international trade