Tunisia prepares for president's funeral, new elections