PAYG pensions and economic cycles: exogenous versus endogenous fertility