An interaction integral method for 3D curved cracks in nonhomogeneous materials with complex interfaces