Shape-shifting organic crystals use memory to improve plastic electronics