Financial markets, banks’ cost of funding, and firms’ decisions: Lessons from two crises