Generative diffusion models from a PDE perspective