Self-organization in optical fibers for efficient phase matching of harmonic generation