Survival as a function of HbA(1c) in people with type 2 diabetes: a retrospective cohort study