Grids of Chinese ancient cities. Spatial planning tools for achieving social aims