Weakly nonparaxial effects on the propagation of (1+1)D spatial solitons in inhomogeneous Kerr media