Temperature anomalies of the magnetic hyperfine field for Sn in metallic ferromagnets and the thermal expansion of the crystal lattice