Improved Theory for the Temperature-Dependent Hyperfine Coupling Constant of Rare-Earth S-State Ions