Safety Fundamentals of Generative AI