A recoil separator for the measurement of radiative capture reactions