Calculating the hyperfine coupling constant