Modeling Context-Adaptive Energy-Aware Security in Mobile Devices