Understanding links between adolescent health and educational attainment