Cu- and Al- based nanoporous membranes for water purification