Topological integrability, classical and quantum chaos, and the theory of dynamical systems in the physics of condensed matter