All-optical tuning of waveguide nonlinear distributed feedback gratings