The Impact of Demand Shocks on Firm-Level Offshoring Behavior: Theory and Evidence