Nanoscale dislocation patterning by scratching in an atomic force microscope