Tailoring an economical membrane process for internal purification in the paper industry