Nanostructural state and magnetism of RFe2HX hydrides obtained by hydrogen-induced amorphization