Electronic structure of Sm2Fe17Nx compounds