contagion phenomena with applications in finance