Vibration of beams with piezoelectric inclusions