Functional Properties of Nanoporous Membranes for the Desalination of Water