S.Korea's top court upholds former president's sentence