Hydrogen absorption in CeFe2 and ThFe3