Active control of flexible structures by use of segmented piezoelectric elements