Bank financing and credit ratings