Contagion-based distortion risk measures