Magnetic properties of the anisotropic MnBi/Sm2Fe17Nx hybrid magnet