Lattice-gas automata and lattice Boltzmann equations for two-dimensional hydrodynamics