The hyperfine fields on carbon in nickel and on carbon in gadolinium