Understanding rice adaptation to varying agro-ecosystems: trait interactions and quantitative trait loci