Finite Element Modeling of Piezoelectric Sensors and Actuators