Adjusting phenotypes via within- and across-generational plasticity.