Sliding mode control for linear systems with time-varying input and state delays