A stable discretization of the lattice Boltzmann equation for simulation of incompressible two-phase flows at high density ratio