The reach of fertility decline: a longitudinal analysis of human capital gains across generations