AI-Assisted Spectral Fingerprinting of Mg-Doped ZnO Tracer Phosphors: Tuning Photoluminescence Emission and Investigating Lifetime via Sol-Gel Synthesis Parameters