Optimization of multilayer shields made of composite nanostructured materials