The Mechanics of Piezoelectric Structures