Chad's ex-president sentenced to life for war crimes