The relationship between lifetime health trajectories and socioeconomic attainment in middle age.