Analysis of a Crack in a Functionally Gradient Interface Layer under Static and Dynamic Loading