Martensitic transformation in shape memory crystal with defects: Monte Carlo simulations and Landau theory