How do life-course trajectories of socioeconomic position affect quality of life in patients with diabetes mellitus?