The role of the rigged Hilbert space in quantum mechanics