Quality of Service and Quality of Control in real-time control systems