Mathematical Modeling and Numerical Simulation of Smart Structures Controlled by Piezoelectric Wafers and Fibers