Magnetic ordering in CoTa2O6 and NiTa2O6