Comparison of the T1 and D1 diagnostics for electronic structure theory: a new definition for the open-shell D1 diagnostic