Self-healing coatings utilizing a shape memory effect