Networks, Firms, and Trade