Logic-based switching adaptive stabilization of feedforward nonlinear systems