Optimal control of linear systems with large and variable input delays