Nanofiltration membranes are of great interest in brackish water desalination and drinking water purification.