Stability analysis for discrete-time switched systems with stable and unstable modes based on a weighted average dwell time approach. (November 2020)