Nuclear magnetic resonance study of (Y1-xRx)2Co14B compounds (R Gd, Tb)