40. Understanding Diffusion Models: A Unified Perspective