Measurements of (n,γ) cross sections for very small stable and radioactive samples of interest to the s- and p-process