Computation of stress intensity factors for interfacial cracks