Lagrange stability and performance analysis of discrete-time piecewise affine systems with logic states