Optimizing magneto-ionic performance in structure/composition-engineered ternary nitrides