Leader Election in the Internet of Things: Challenges and Opportunities