HarperCollins to allow tech firms to use its books to train AI models