Compensation of self-phase modulation through linear coupling in nonlinear directional fiber couplers