Effective and efficient detection of premature ventricular contractions based on variation of principal directions