Hyperfine interactions in charm and bottom systems