Wyślij emailem: Optimal control for networked control systems with multiple delays and packet dropouts