Functional nanocomposites and their potential applications: A review