Shocks, spillovers and the location of firms