Cognitive Approach to Building Smart and Smart Cities & Societies