Contaminated process water: routes, detection and prevention