An automatic method for detection of valve stiction in process control loops