Experimental and theoretical analysis of transient grating generation and detection of acoustic waveguide modes in ultrathin solids