Stress induced phase transformations and the shape memory effect in β′1 CuAl martensite