Simulation of piezoelectric devices by two- and three-dimensional finite elements | Synapse