Stress-induced phase transitions in elastic solids