Design of Time-Sensitive Networks For Safety-Critical Cyber-Physical Systems