Applications of rigged Hilbert spaces in quantum mechanics and signal processing