All-optical logic gates based on wavelength conversion in a nonlinear directional coupler