Advanced Mechanics of Piezoelectricity