How a southern Indian state raced ahead in the EV game and wooed Tesla