Control of systems with hysteresis using servocompensators