Information theory of quantum entanglement and measurement