Coupling shape-memory alloy and embedded informatics toward a metallic self-healing material