Advanced modeling and optimization of nitrate removal in nanofiltration and reverse osmosis using RSM and Nernst–Planck theory | Synapse