Improving the Energy Consumption of Mobile and Embedded Systems