Automatic Diagnosis of Valve Stiction by means of a Qualitative Shape Analysis Technique