Finite element formulation of the thermo-hydro stress problem in soybeans