An Automated Visual Inspection System for the Classification of the Phases of Ti-6Al-4V Titanium Alloy