Magnetic properties of R3Co8Sn4 (R=Y,Gd)