Modeling the Internet of Things: A Simulation Perspective