Landau-Zener tunneling of Bose-Einstein condensates in an optical lattice