Transporting and Separating Molecules Using Tailored Nanotube Membranes