A location-based fog computing optimization of energy management in smart buildings: DEVS modeling and design of connected objects