A game-theoretic approach to fault diagnosis and identification of hybrid systems