European Court adviser: Britain can revoke Brexit unilaterally