Endogenous fertility, endogenous lifetime and economic growth: the role of child policies