Design of Resonant Piezoelectric Devices