Optimal Active Control of Flexible Structures Applying Piezoelectric Actuators