Understanding and Measuring Collective Intelligence Across Different Cognitive Systems: An Information-Theoretic Approach