Bridging semantics and pragmatics in information-theoretic emergent communication