Systemic risk in a mean-field model of interbank lending with self-exciting shocks