Martensitic transformation at a propagating crack