Explaining the decline in early mortality in men and women with type 2 diabetes: a population-based cohort study