Molecular dynamics study into the role of the surface in fracture of nanostructures