Magnetic ordering in Sc2CoSi2-type R2FeSi2 (R=Gd, Tb) and R2CoSi2 (R=Y, Gd-Er) compounds