Understanding the chlorination mechanism and the chlorine-induced separation performance evolution of polypiperazine-amide nanofiltration membrane