Event-triggered control of networked switched systems under network attacks