Energy-Aware Scheduling Design of Control Tasks