Resonances of dynamical systems and Fredholm-Riesz operators on rigged Hilbert spaces☆