Algeria upholds prison terms of two ex-prime ministers