Propagation of matter-wave solitons in periodic and random nonlinear potentials