Former South Korean president sentenced to 10 years in prison