As Arlene Foster prepares to resign as first minister, what is the process for appointing her successor?