Hundreds of fighters, gunmen and their families in three besieged parts of Syria have been evacuated under a truce deal brokered by the United Nations.