NSW chief justice warns of artificial intelligence and its use in state's legal system on eve of restrictions