Financial shocks, firm credit and the Great Recession