Automatic Profiles Recognition by a Laser Gauge for Production Lines Control