S Korea president declares martial law, parliament rejects declaration