Baseline and longitudinal trajectories of body-mass index and all-cause mortality among patients with type 2 diabetes.