Determination of hyperfine structure of highly excited S states in alkali atoms using a CW dye laser