Energy-efficient and Blockchain-enabled Model for Internet of Things (IoT) in Smart Cities