Self-optimized Cognitive Network of Networks