The statistical analysis of multi-environment data: modeling genotype-by-environment interaction and its genetic basis