Structural Funding and Bank Failures