Compensation of torsion in rods by piezoelectric actuation