The influence of the surface on the fracture process of nanostructures under dynamic loads