Energy-efficient computation offloading and resource allocation in fog computing for Internet of Everything | Synapse