An alternating technique for solving subinterface crack problems