Judicial misconduct can be a bar to retrial under double jeopardy ban, top state court rules