Cardinal directions between spatial objects: the pairwise-consistency problem