What factor significantly influenced changes in governmental structures within the Qing dynasty during the late 18th century?