Anti-windup compensation for nonlinear systems via gradient projection: Application to adaptive control