Radiative capture of neutrons in the region of the dipole giant resonance