A Unified Switching System Perspective and Convergence Analysis of Q-Learning Algorithms