Stability of Piecewise Affine Systems through Discontinuous Piecewise Quadratic Lyapunov Functions