Quadratic Optimal control of linear systems with time-varying input delay