Landau and dynamical instabilities of the superflow of Bose-Einstein condensates in optical lattices