Staying Afloat When the Wind Shifts: External Factors and Emerging-Market Banking Crises