Online shopping has made returns a huge and costly part of retail, and warehouses are now turning to robots that can open, unpack and sort.