A Hong Kong judge who has overseen high-profile national security trials, including the collusion case of former media boss Jimmy Lai Chee-ying, has been promoted to the Court of Appeal.