Automated, cloudless, short-term fault-prediction for electric drives, power modules, and power devices, that can be integrated into power converters