Unravelling the processes between phenotypic plasticity and population dynamics in migratory birds