Nanoporous materials : from catalysis and hydrogen storage to wastewater treatment