Perturbations of discrete lattices and almost periodic sets