Outlier detection and accommodation in general spatial models