Energy-efficient computation offloading for wearable devices and smartphones in mobile cloud computing