Modelling phenotypic flexibility : an optimality analysis of gizzard size in Red Knots Calidris canutus