How to Automate the Geometrical Tolerances Inspection: a Reverse Engineering Approach