Globally Optimal Synthesis of Heat Exchanger Networks.Part III:Non-isothermal Mixing in Minimal and Non-Minimal Networks