Impacts of state-dependent impulses on the stability of switching Cohen-Grossberg neural networks