\[W=-\sum_{1\leq\ell<j\leq n}\ln|e^{i\theta_{\ell}}-e^{i\theta_{j}}|,\]