Atomic-Beam Method for the Study of Isotope Shifts