Essays in Economic Geography: Spatial Frictions and Externalities