Stability of free-convection flows of variable-viscosity fluids in vertical and inclined slots