Using optimal control theory to identify network structures that foster synchrony