S. Korean president declares emergency martial law