An Adaptive Oversampling Learning Method for Class-Imbalanced Fault Diagnostics and Prognostics