Who signed multiple peace treaties with the Tang?