Optimal life histories and food web position: linkages among somatic growth, reproductive investment, and mortality