Two magnetic impurities with arbitrary spins in open boundary t-J model