Implementation and Evaluation of a Context-aware Power Management System