Precision measurements of hyperfine splitting of optical lines by resonance laser spectroscopy