Q-SMASH: Q-Learning-based Self-Adaptation of Human-Centered Internet of Things