Exploring the Interplay of Religious and Worldly Dynamics through the Development of the Dunhuang Grottos