Dynamics of Bose-Einstein condensates in a one-dimensional optical lattice with double-well potential