Diffusion Model Inverse Functions