Discrete modelling of plasticity and martensitic transformation by