South Korean president aplolgises for declaring martial law