Machines could fuel comeback of textile industry