A fog-based internet of energy architecture for transactive energy management systems | Synapse