Edge computing and social internet of things for large-scale smart environments development