Modelling the amphoteric behaviour of polyamide nanofiltration membranes