Effects of 3d-p hybrization on intersublattice exchange interactions in RCoB compounds