A lattice-Boltzmann study of phase separation in liquid-vapor systems with gravity