Determinants of fertility in developing countries