Stabilizing intermetallic phases within aluminum foam