In-fiber second-harmonic generation with embedded two-dimensional materials