Mechanically induced martensitic transformation as a stress-driven process