A System-level Framework for the Evaluation of the Performance Cost of Scheduling and Communication Delays in Control Systems