Incorporating effects of age on energy dynamics predicts nonlinear maternal allocation patterns in iteroparous animals