Genotype-by-environment interactions and sexual selection