NEW YORK — Ten major tech companies announced Tuesday that they would work together to prevent artificial intelligence from creating and spreading materials depicting child sexual abuse. There are concerns that AI is trained on such materials found online to generate masses of inappropriate images.