Building Sustainable and Cognitive Systems through Edge-AI Powered 6G Architectures