Atomic configurations in ideally flat surfaces—II: Description of surface for an arbitrary crystal structure