Former Philippine president sentenced to life in prison