Quality control systems for pulp and paper mills