Crystal structure and magnetism in CoSb2O6 and CoTa2O6