Physical and chemical phenomena in determining the charge formation of Nanofiltration membranes