Exploring factors influencing the characteristics of historic cities: the case of the Ancient City of Pingyao, China