How to Perform AC Input and Inverter/Drive Output Harmonic Analysis