Automatic tuning of finite spectrum assignment controllers for delay systems