Optimal life histories and age-specific costs of reproduction: two extensions.