South Korean ex leader sentenced 24 years in prison