Real-time inverse hysteresis compensation of piezoelectric actuators with a modified Prandtl-Ishlinskii model