Harmonic analysis of industrial power systems