Effective sample size for spatial regression models