Population Dynamics Determine Genetic Adaptation to Temperature in Daphnia