Quantum scattering theory, Resonances, Quantum measurement theory