Magnetic properties of Fe2P-type R6CoTe2 compounds (R=Gd-Er)