A fast compensation algorithm for real-time control of magneto strictive actuators