Estimation of the population attributable fraction for mortality in a cohort study using a piecewise constant hazards model.