Optimal Level Crossing Predictions for Electronic Prognostics