South Korea president avoids impeachment attempt after short-lived martial law