Smart polymer nanocomposites: A review