Buckling control of a flexible beam using piezoelectric actuators