Sludge line automation in real waste water treatment plants. experimentation and optimization of control logic