High coercivity in Sm2Fe17Nx magnets