Former South Korean president sentenced to life in prison