Automation could add billions of dollars to Indonesia’s economy and raise average incomes but the gains will not come effortlessly