An atomistic investigation on the wear of diamond during atomic force microscope tip-based nanomachining of gallium arsenide