Dislocation punching from interfaces in functionally-graded materials