Text this: Data-driven Design of Fault Diagnosis and Fault-tolerant Control Systems