Crystalline effects in the theory of lattice contraction at metal surfaces