Unveiling the Potential of Diffraction Gratings for Precision Separation of Higher Harmonics in Nonlinear Acoustics