Michelle O'Neill har formellt utsetts till Nordirlands försteminister.