Design of piecewise linear hybrid dynamical systems using a control regulator approach