Long-term foraging optimization in northern shovelers