Optimal Design of Piezoelectric Sensors and Actuators for the Attenuation of Vibrations in Multilaminated Structures