Inline analytical technology for cleaning, rinsing, treating and coating baths of industrial parts and surfaces