Photoperiodic response may facilitate adaptation to climatic change in long-distance migratory birds