Design and Fabrication of Porous Nanostructures and Their Applications