Hydrogenation and nitrogenation of SmFe2