Earnings-Based Borrowing Constraints and Macroeconomic Fluctuations