The Design of Bank Loan Contracts, Collateral, and Renegotiation