Recent developments in carbon nanotube membranes for water purification and gas separation