The evolution of fitness in life-history theory