Dynamics and phase evolution of Bose-Einstein condensates in one-dimensional optical lattices