When was the region under Tibetan empire and the CHinese