Radiative capture of polarized neutrons above pion production threshold