Analysis of flow reversal for laminar mixed convection in a vertical rectangular duct with one or more isothermal walls