Measurement of the hyperfine splitting of alkali atoms in superfluid helium for laser spectroscopy of atoms with unstable nuclei