South Korean court upholds jail term for former president Park