State Estimation for Piecewise Affine State-Space Models