Magnetic ordering in HoCoSi and TbCoGe