A thermodynamically-consistent non-isothermal phase-field model for probing evolution of crack propagation and phase transformation