Molecular dynamics simulations of martensitic transitions