Companies benefiting from A.I. should donate a small percentage of their profits to retrain the workers the tech will displace.