A multi-level simulation framework for IoT-based elderly care systems