Credit Supply Shocks, Financial Constraints and Investments for Small and Medium-sized Firms