Fracture mechanics analysis of functionally graded layered structures with a crack crossing the interface