Tens of millions of devices are thrown away each year — and the rise of generative AI will only make this worse