Court upholds life imprisonment for Chad's ex-president