Trade Credit and the Effect of Macro-Financial Shocks