Application of nonlinear factor analysis to genotype-environment interaction