The impact of the dependence structure in risk management: a focus on credit-risk