Prognostics and health monitoring of electronic system