The effect of longevity on schooling and fertility: evidence from the Brazilian Demographic and Health Survey