Event based modeling and estimation techniques for fault diagnosis and fault tolerant control of systems