An inline ion-exchange system in a chemiluminescence-based analyzer for direct analysis of N-nitrosamines in treated wastewater.