Demographic transitions and children's resources: growth or divergence?