Quantum information theory of measurement