A geometrical characterization of regions of uniqueness and applications to discrete tomography