Predictor based control for linear systems with both state and input delays