Automatic Battery Interface-Based Energy Modeling For Wireless Interface On Smartphones