Microstructural and spectrophotometric analysis system for metal welding processes