Finite‐element analysis of periodically perturbed piezoelectric waveguides