Foraging mode shift in varying environmental conditions by dunlin Calidris alpina