Analysis of neutron-capture data in the resonance region