Enabling Social- and Location-Aware IoT Applications in Smart Cities