Jensen’s inequality predicts effects of environmental variation