Application of smart nanostructures in medicine