Dipolar contributions to magnetic hyperfine fields in ErxY1−xFe2 and TbxY1−xFe2 compounds