What Are AI Hallucinations and How Do They Work?