Demand for Bank Loans and Investment under Borrowing Constraints: A Panel Study of Japanese Firm Data