Tool wear compensation in 3D micro EDM based on the scanned area