Nurse writes about inspiring conversations she had with dying patients in new book