Design of nonlinear regulators from logic-based stabilizers