A Syrian court has sentenced former president Bashar al-Assad to death in absentia for crimes against humanity and war crimes.