Nonlinear phase-integral approximations of stationary waves in nonhomogeneous systems