A study of non-Boussinesq effect on transition of thermally induced flow in a square cavity