Stability analysis of nonstationary switched systems