A new method for (n,γ)-cross section measurements on unstable isotopes. Clues for the origin of the chemical elements