Geometry and surface state effects on the mechanical response of Au nanostructures