Multiterabit-per-second all-optical switching in a nonlinear directional coupler