Centralized and Distributed Architectures for Energy and Delay Efficient Fog Network-Based Edge Computing Services