Variable gain adaptive control systems for machine tools