South Korean president declares martial law