Fitness optimization of Daphnia in a trade-off between food and temperature