Text this: Phase transformation and subsurface damage formation in the ultrafine machining process of a diamond substrate through atomistic simulation