Internet of Things Architectures: A Security Perspective