Distributed hybrid simulation of the Internet of things and smart territories