Antiferromagnetic resonance in the cubic iridium hexahalides (NH4)2IrCl6 and K2IrCl6