Transition of crack path at bi-material interfaces