Modeling and Evaluating Energy Performance of Smartphones