Regulation of nonlinear systems using conditional integrators