Peculiarities of energy trapping of the UHF elastic waves in diamond‐based piezoelectric layered structure. I. Waveguide criterion