Extraction of symmetrical components in the presence of harmonics