Interpretation of appropriate places: State ceremonies and the imperial main halls of the Tang and Song dynasties