Attractors and limit cycles of discrete-time switching affine systems: Nominal and uncertain cases. (March 2023)