Nonlinear elasticity in nanostructured materials