Real time monitoring of capacitor degradation in industrial variable speed drives