Optimal Design of DER Volt/VAR Control Rules in Distribution Grids