Processing of electrical signal for harmonic and interharmonic analysis in industrial measurement