The adaptive dynamics of life histories: From fitness-returns to selection gradients and Pontryagin's maximum principle