Second harmonic generation in optical fibers