Mechanical response of nanostructured materials