Extreme Value Theory with an Application to Bank Failures through Contagion