Determination of cobalt behavior in TmCo2 and HoCo2 by means of polarized neutron diffraction