Nonlinear time-dependent one-dimensional Schrodinger equation with double-well potential