An atomic interaction-based adhesive contact model for shallow nanoindentation and nanoscratch