Evaluation of 4-Gbit/s optical fiber transmission distance with direct and external modulation