Stability and stabilization of switched linear systems with mode-dependent average dwell time