Generalized PI control for robust stabilization of dynamical systems