Dynamic transition of dendrite orientation in the diffusive spinodal decomposition of binary mixtures under a thermal gradient