On the theoretical and phase field modeling of the stress state associated with ferroelastic twin nucleation and propagation near crack tip