South Korea's opposition party's ex-leader wins presidential nomination