Pressure and temperature dependence of the hyperfine fields of impurities in iron and nickel