On the synthesis of piecewise affine control laws