Enhancing the performance of multilayer-dielectric diffraction gratings through cleaning process modifications and defect mitigation