South Korean president apologizes for martial law order