Outsourcing and Trade in a Spatial World