The Margins of Global Sourcing: Theory and Evidence from U.S. Firms