Text this: Socioeconomic pathways to inequalities in mental and functional health: a comparative study of three birth cohorts