what was the treaties of tianjin?