The First Opium War revealed the outdated state of the Chinese military. What treaty marked the end of the First Opium War?