Homogenization of nonisothermal immiscible incompressible two-phase flow in porous media. (October 2018)