Modeling mechanical effects on promotion and retardation of martensitic transformation