A fuzzy inference system approach for diagnostics and prognostics of polymer electrolyte fuel cells