Economic theory of spatial cost of living indices with application to Thailand