Magneto-ionics in single-layer transition metal nitrides