Diagnosis of oscillations in process control loops