Key management systems for sensor networks in the context of the Internet of Things