Former South Korean leader gets 24 years in prison