Magnetic properties of R4Co3 (R = Gd, Y) compounds as observed by NMR