The validity of optimal leaf traits modelled on environmental conditions