Former dissident sworn in as Tunisia's president