Adaptive and Flexible Smartphone Power Modeling