perpetual motion made in tang dynasty