Financial derivatives and default dependence: a time-varying copula approach