Life sentence for ousted Egyptian president