Detection system for detecting capacitance degradation in inverters