Surface melting and layering transitions from a lattice-gas model.