Event-based processing of neutron scattering data at the Spallation Neutron Source