Distributed sensor and actuator reconfiguration for fault-tolerant networked control systems