Multi-period corporate default prediction with stochastic covariates