Optimization of Metrological Characterization of Machining Distortions