Fertility, growth and the financing of public education and health