Method for Marking Workpieces and Workpiece