Tailoring THz antiferromagnetic resonance of NiO by cation substitution