Nitrogen storage properties based on nitrogenation and hydrogenation of rare earth–iron intermetallic compounds R2Fe17 (R=Y, Ce, Sm)