Direct optical measurement of sodium hyperfine structure using a cw dye laser and an atomic beam