Coping with and exploiting genotype-by-environment interactions.