Design and test of a stress-dependent compensator for magnetostrictive actuators