How Law and Institutions Shape Financial Contracts: The Case of Bank Loans