The radiative capture of heavy ions