Understanding surface patterning by lattice gas models