The effect of flaws on the propagation of cracks at bi-materials inferfaces