Diffusion Models for Inverse Problems in the Exponential Family