Gaussian-mode analysis of waveguide-enhanced Kerr-type nonlinearity of optical fibers and photonic wires