H-infinity optimal terminal control for linear systems with delayed states and controls