Spectrum calculation for a PV inverter with chaotic SPWM control