How Thailand found its niche in the robotics, aerospace, and auto industries