Title: Observer-Based Fault Diagnosis and Fault-Tolerant Control for Switched Systems