Multi-level simulation of Internet of Things on smart territories