Is It Legal to Train AI Models on Copyrighted Books? The Answer Is Complicated