Control of beam vibrations by means of piezoelectric devices: Theory and experiments