Ex-South Korean president gets five-year prison term