Development of functional nanostructures and their applications in catalysis and solar cells