Stress-induced transformations and the shape-memory effect