Matrilineal spirits, descent and territorial power in northern Thailand