Solution of the graded Yang-Baxter equation associated with the vector representation of Uq(osp(M/2n))