Spectroscopic factors from radiative capture reactions