Stability Analysis of Nonlinear and Time-Varying Discrete Systems